<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>LAL后台管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="{{asset('resources/org/layui/css/layui.css')}}">
    <link rel="stylesheet" href="{{asset('public/css/admin.css')}}">
    <script src="{{asset('resources/org/layui/layui.js')}}"></script>
</head>
<body>
<div class="layui-login">
    <form action="{{url('admin/login')}}" method="post" class="layui-form">
        {{csrf_field()}}
        <div class="layui-form-item">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-block">
                <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
            <div class="layui-input-block">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">验证码：</label>
            <div class="layui-input-block">
                <input type="text" name="captcha" required  lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input layui-input-inline">
                <img src="{{url('admin/captcha')}}" alt="" class="captcha" onclick="this.src='{{url("admin/captcha")}}?'+Math.random()">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="*">登 录</button>
            </div>
        </div>

    </form>
</div>


</body>
</html>
<script>
    layui.use(['form','layer'],function () {
        form = layui.form();
        layer = layui.layer;
        var msg = "{{session('msg')}}";
        if (msg != ''){
            layer.msg("{{session('msg')}}");
        }
    });
</script>